package data.nanjing.expo.models.domain.dto.exhibition;

import data.nanjing.expo.common.Util;

import javax.naming.InterruptedNamingException;

/**
 * 展商在线展位信息Dto
 *
 * @author ChanJi
 * @create 2018-06-20 15:16
 **/
public class ParticipantDto {
    /**
     * 展会id
     */
    private Integer id;
    /**
     * 编号字母
     */
    private String word;
    /**
     * 编号数字
     */
    private Integer number;
    /**
     * 参展商id
     */
    private Integer expoId;
    /**
     * 参展商简称
     */
    private String name;

    /**
     * 参展商logo图片地址
     */
    private String url;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getExpoId() {
        return expoId;
    }

    public void setExpoId(Integer expoId) {
        this.expoId = expoId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        if (url!=null){
            return Util.getFinalFilePath(url, "80", "50");
        }else{
            return url;
        }
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "ParticipantDto{" +
                "id=" + id +
                ", word='" + word + '\'' +
                ", number=" + number +
                ", expoId=" + expoId +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
